<%@ Page Language="C#" MasterPageFile="~/LT_MasterPage.master" AutoEventWireup="true" CodeFile="DevelopersForm.aspx.cs" Inherits="Developers_DevelopersForm" Title="Untitled Page" Culture="auto" meta:resourcekey="PageResource1" UICulture="auto" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <br />
    <br />
    &nbsp;<asp:Label ID="lblDataSource" runat="server" Text="Filter By Resource File:" meta:resourcekey="lblDataSourceResource1"></asp:Label>
    <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" DataSourceID="ObjectDataSource1"
        DataTextField="DataSourceName" DataValueField="DataSourceID" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" meta:resourcekey="DropDownList1Resource1">
    </asp:DropDownList>
    <br />
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetDataSources"
        TypeName="LocalizationToolkit_DAL.Elements">
        <SelectParameters>
            <asp:ProfileParameter DefaultValue="" Name="ApplicationID" PropertyName="ApplicationID"
                Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <br />
    <br />
    <br />
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
        DataSourceID="ObjectDataSource2" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" DataKeyNames="ElementID" meta:resourcekey="GridView1Resource1">
        <Columns>
            <asp:CommandField ShowDeleteButton="True" meta:resourcekey="CommandFieldResource1" />
            <asp:CommandField ShowSelectButton="True" meta:resourcekey="CommandFieldResource2" />
        </Columns>
        <FooterStyle BackColor="White" ForeColor="#000066" />
        <RowStyle ForeColor="#000066" />
        <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
        <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
    </asp:GridView>
    <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" SelectMethod="GetElements"
        TypeName="LocalizationToolkit_DAL.Elements" DeleteMethod="DeleteElement" UpdateMethod="UpdateInvariant">
        <SelectParameters>
            <asp:ProfileParameter DefaultValue="9" Name="ApplicationID" PropertyName="ApplicationID"
                Type="Int32" />
            <asp:ControlParameter ControlID="DropDownList1" DefaultValue="0" Name="DataSourceID"
                PropertyName="SelectedValue" Type="Int32" />
        </SelectParameters>
        <DeleteParameters>
            <asp:Parameter Name="ElementID" Type="Int32" />
        </DeleteParameters>
        <UpdateParameters>
            <asp:Parameter Name="ElementID" Type="Int32" />
            <asp:Parameter Name="PropertyValue" Type="String" />
        </UpdateParameters>
    </asp:ObjectDataSource>
    &nbsp;<br />
    <asp:FormView ID="FormView1" runat="server" BackColor="White" BorderColor="#999999"
        BorderStyle="None" BorderWidth="1px" CellPadding="3" DataSourceID="ObjectDataSource3"
        GridLines="Vertical" Height="75px" Width="90%" OnPageIndexChanging="FormView1_PageIndexChanging" DataKeyNames="ElementID" OnItemUpdated="FormView1_ItemUpdated" meta:resourcekey="FormView1Resource1">
        <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
        <EditRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
        <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
        <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
        <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
        <EditItemTemplate>
            <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("ElementID") %>' Visible="False" Enabled="False" ReadOnly="True" meta:resourcekey="TextBox4Resource1"></asp:TextBox>
            &nbsp;
            <br/>
            <asp:Label ID="Label3" runat="server" Text="Resource Name:" meta:resourcekey="Label3Resource1"></asp:Label>&nbsp;&nbsp;
            <asp:TextBox ID="TextBox7" runat="server" Text='<%# Eval("ElementKey") %>' Enabled="False" OnTextChanged="TextBox7_TextChanged" meta:resourcekey="TextBox7Resource1"></asp:TextBox><br/>
            <asp:Label ID="Label2" runat="server" Text="Invariant Culture Value" meta:resourcekey="Label2Resource1"></asp:Label>
            <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("PropertyValue") %>' Height="63px" Rows="5" TextMode="MultiLine" Width="90%" meta:resourcekey="TextBox6Resource1"></asp:TextBox>
            <br/>
            <asp:Button ID="Button2" runat="server" CommandArgument="Update" Text="Accept Change" CommandName="Update" OnClick="Button2_Click" meta:resourcekey="Button2Resource1"/>
            <asp:Button ID="Button3" runat="server" CommandArgument="Cancel" Text="Cancel"  CommandName="Update" meta:resourcekey="Button3Resource1"/>
           
        </EditItemTemplate>
        <ItemTemplate>
        <asp:Label ID="Label2" runat="server" Text="Resource Name:" meta:resourcekey="Label2Resource2"></asp:Label>
            <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("ElementID") %>' Visible="False" Enabled="False" meta:resourcekey="TextBox3Resource1"></asp:TextBox>
            <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("ElementKey") %>' Enabled="False" meta:resourcekey="TextBox2Resource1"></asp:TextBox>
            <br/><br/>
            <asp:Label ID="Label1" runat="server" Text="Invariant Culture Value" meta:resourcekey="Label1Resource1"></asp:Label>
            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("PropertyValue") %>' Enabled="False" Height="38px" Rows="5" TextMode="MultiLine" Width="90%" meta:resourcekey="TextBox1Resource1"></asp:TextBox>
            <br/>
            <asp:Button ID="Button1" runat="server" Text="Edit" CommandName="Edit" meta:resourcekey="Button1Resource1"/>
        </ItemTemplate>
        <HeaderTemplate>
            <asp:Label ID="Label4" runat="server" Text="Edit Resource Invariant Value" meta:resourcekey="Label4Resource1"></asp:Label>
        </HeaderTemplate>
    </asp:FormView>
    &nbsp;&nbsp;<br />
    &nbsp;
    <br />
    <asp:ObjectDataSource ID="ObjectDataSource3" runat="server" SelectMethod="GetElementByID"
        TypeName="LocalizationToolkit_DAL.Elements" UpdateMethod="UpdateInvariant">
        <UpdateParameters>
            <asp:Parameter Name="ElementID" Type="Int32" />
            <asp:Parameter Name="PropertyValue" Type="String" />
        </UpdateParameters>
        <SelectParameters>
            <asp:ControlParameter ControlID="GridView1" Name="ElementID" PropertyName="SelectedValue"
                Type="Int32" />
            <asp:ProfileParameter Name="ApplicationID" PropertyName="ApplicationID" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <br />
</asp:Content>

